geom_point
{GGPLOT2}
Generates a scatter plot
as.character
{base}
Coerce a vector to character
theme_classic
{GGPLOT2}
A minimalistic theme with no gridlines
dim
{base}
Get dimensions of a data frame
element_line
{GGPLOT2}
Customise line appearance
matrix
{base}
Creates a matrix from the given set of values.
theme
{GGPLOT2}
Customize ggplot themes
scale_x_continuous
{GGPLOT2}
Customise continuous x axis
with
{base}
evaluate expression in the context of a data frame
replace
{base}
Replace elements in a vector
element_blank
{GGPLOT2}
This theme element draws nothing, and assigns no space
ggsave
{GGPLOT2}
Save a ggplot to file
list
{base}
Create a list object
factor
{base}
Create a factor
c
{base}
Combine values/vectors into a vector
levels
{base}
Get levels of a factor
ls
{base}
Return a vector of character strings giving the names of the objects in the specified environment
class
{base}
Retrieve class of an R object
library
{base}
Load an R package
ggplot
{GGPLOT2}
Create a ggplot graph
scale_color_discrete
{GGPLOT2}
Customise the discrete colour scale
filter
{dplyr}
Filter out rows of a data frame according to logical vector
setwd
{base}
Set Working Directory
correlation_matrix
{corrtable}
Create a formatted correlation matrix of variables
geom_histogram
{GGPLOT2}
Generates a histogram
save_tt
{tinytable}
Save a tinytable object to a file
cut
{base}
Convert Numeric to Factor
fct_relevel
{forcats}
Reorder factor levels by hand
colnames
{base}
Retrieve column names of a data frame
predict
{stats}
Generate predicted values from model objects
ylab
{GGPLOT2}
Label the y axis (ggplot)
data.frame
{base}
Create a data.frame from vectors
ifelse
{base}
Return a or b depending on the value of test
theme_latex
{tinytable}
A theme for modelsummary/tinytable tables
save_plot
{cowplot}
Save a plot to a file
which
{base}
return indexes of TRUE entries of a logical vector
lm
{stats}
Fit linear models using least squares
read_excel
{readxl}
Read an Excel file
ggtitle
{GGPLOT2}
Generates a title for a ggplot graph
scale_y_continuous
{GGPLOT2}
Customise continuous y axis
print
{base}
Print object to the console
t.test
{stats}
Performs one and two sample t-tests on vectors of data.
recode
{dplyr}
Recode a variable
subset
{base}
Return subsets of vectors, matrices or data frames which meet conditions.
mutate
{dplyr}
Create new variables
as.integer
{base}
Convert an object to integer values
sd
{stats}
Get standard deviation of a vector
names
{base}
Get or set names of an object
factor
{base}
Create factor variables
prop.table
{base}
Transform frequency table into table of proportions
datasummary
{modelsummary}
Create customizable summary-statistics tables
coord_flip
{GGPLOT2}
Flip the x and y axes of a graph
vdem
{vdemdata}
V-Dem country-year dataset
quantile
{stats}
Obtain empirical quantiles of a vector
select
{dplyr}
Select columns from a tibble/data frame
labs
{GGPLOT2}
Customise labels in GGPLOT2
attach
{base}
Attach Set of R Objects to Search Path
complete.cases
{stats}
Find Complete Cases
pwr.r.test
{pwr}
Power analysis for correlation tests
as.numeric
{base}
Coerce a vector to numeric
summary
{base}
Obtain summary statistics or detailed regression output
geom_hline
{GGPLOT2}
Add a horizontal line in GGPLOT2
is.na
{base}
Check if a value is NA/elements of vector are NA
median
{stats}
Get median of a vector
geom_jitter
{GGPLOT2}
Add randomly displaced points to reduce overplotting
xlab
{GGPLOT2}
Label the x axis (ggplot)
confint
{stats}
Calculate confidence Intervals for Model Parameters
table
{base}
Obtain frequency table of a variable/cross-tabulation of two variables
modelsummary
{modelsummary}
Creates regression and data tables
str
{utils}
Get the structure of an R object
group_tt
{tinytable}
Grouping in tinytable
arrange
{dplyr}
Sort values of data frame according to a variable/combination of variables
round
{base}
Rounds numbers
cor.test
{stats}
Test for Association/Correlation Between Paired Samples
sapply
{base}
Apply a function over a vector or list and simplify the result
sum
{base}
Get sum of numeric values or a vector
droplevels
{base}
Drop Unused Levels from Factors
geom_vline
{GGPLOT2}
Draws a vertical line
geom_smooth
{GGPLOT2}
Generates a smoothed conditional means curve / line
geom_bar
{GGPLOT2}
Generates a bar chart
order
{base}
Get indexes that will sort a vector
reorder
{stats}
Reorder Levels of Factor based on the values of a second variable, usually numeric.
group_by
{dplyr}
Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise
chisq.test
{stats}
Chi-Squared test (e.g. for cross-tabulations)
margin
{GGPLOT2}
Set margins around plot elements (used inside theme elements)
read.csv
{utils}
Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters
log
{base}
log (default base = e)
rm
{base}
Remove objects
as.factor
{base}
Coerce a vector to factor
relevel
{stats}
Set a reference level for a factor variable
mean
{base}
Get mean of a vector
element_text
{GGPLOT2}
Customise text in GGPLOT2
write.csv
{utils}
write a csv file to a data frame
summarise
{dplyr}
collapse the dataset to a summary statistic. Usually used with group_by()
read_csv
{readr}
Read CSV files
aes
{GGPLOT2}
Construct aesthetic mapping of a ggplot graph
head
{utils}
Show first 5 rows of a data frame
plotPlane
{rockchalk}
Draw a 3-D regression plot for two predictors
after_stat
{GGPLOT2}
Control aesthetic evaluation. On the module used for displying percent
The end!